package com.fxdigital.nvr;

/** 
 * IP通道信息
 * */
public class IPChannelInfo {
	private String ip; // IP设备地址
	private int port; // IP设备端口号
	private String userName; // IP设备登陆用户名
	private String password; // IP设备登录密码
	
    // 协议类型
    // 0-HIK，1-PANASONIC，2-SONY，4-AXIS，5-SANYO，6-BOSCH，7-ZAVIO，
    // 10-ARECONT，11-ACTI，12-PELCO，13-VIVOTEK，15-SAMSUNG, 17-PSIA,
    // 18-ONVIF, 19-BRICKCOM, 22-CANON, 31-HUNT,
    // custom1-128, custom2-129, custom3-130, custom4-131, custom5-132, 
    // custom6-133, custom7-134, custom8-135, custom9-136, custom10-137, 
    // custom11-138, custom12-139, custom13-140, custom14-141, custom15-142, custom16-143
    // 注：如果选用ONVIF，则不要指定下面的steramURL属性
    private int protocol;
    
    // 取流方式
    // 1-直接从设备取流
    // NVR不支持URL取流方式，目前，此参数固定取值为1
    private int streamMode;
    
    // IP通道在线状态
    // 0-不在线，1-在线
    private int isOnline;
    
    private int nvrChannel; // NVR的IP通道号，仅当进行IP通道查询时才用到，其他情况可忽略

    private int channel; // 接入的IP设备的通道号，不是NVR的IP通道号，注意区别
    
	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public int getProtocol() {
		return protocol;
	}

	public void setProtocol(int protocol) {
		this.protocol = protocol;
	}

	public int getStreamMode() {
		return streamMode;
	}

	public void setStreamMode(int streamMode) {
		this.streamMode = streamMode;
	}

	public int getIsOnline() {
		return isOnline;
	}

	public void setIsOnline(int isOnline) {
		this.isOnline = isOnline;
	}
	
    public int getNvrChannel() {
		return nvrChannel;
	}

	public void setNvrChannel(int nvrChannel) {
		this.nvrChannel = nvrChannel;
	}

	public int getChannel() {
		return channel;
	}

	public void setChannel(int channel) {
		this.channel = channel;
	}
}
